package com.dd.cloud.common.constants;

/**
 * 文件
 */
public class FileConstants {

    /**
     * 文件大小单位
     */
    public interface SizeUnit{
        String B = "B";
        String KB = "KB";
        String MB = "MB";
        String GB = "GB";
        String TB = "TB";
    };

    /**
     * 视频文件大小 最大值
     */
    public static int mediaMaxSize = 200;

    /**
     * 大小
     *
     * @author vodbook
     */
    public interface Size {

        /**
         * 需要压缩的大小下限
         */
        long COMPRESS = 1024 * 512L;

        /**
         * 文件的大小上限
         */
        long CEILING = 10 * 1024 * 1024L;
    }



    /**
     * 格式
     */
    public interface Format{

        /**
         * 默认图片格式
         */
        String DEFAULT_IMG  = "jpeg";

        /**
         * 图片格式
         */
        String[] IMG = {"image/jpeg", "image/png", "image/jpg", "image/bmp"};

        /**
         * 视频格式
         */
        String[] MEDIA = {"video/mp4","video/avi","video/mkv","video/flv","video/mpg","video/x-ms-wmv"};

        /**
         * 文件格式
         */
        String[] FILE = {"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.android.package-archive"};
    }

    //文件状态
    public interface FileStatus{
        Integer NOMAL = 1;
        Integer OFF = 0;
        Integer DEL = -1;
    }

    //app类型
    public interface AppType{
        //安卓
        Integer ANDROID = 1;
        //苹果
        Integer IOS = 2;
    }

    //是否强制更新
    public interface UpdateInstall{
        //是
        Integer YES = 2;
        Integer NO = 1;
    }
}
